#define _CRT_SECURE_NO_WARNINGS
#include<math.h>
#include<stdio.h>



int main() {
	int n = 0; int i = 0; int j = 0;
	scanf("%d", &n);
	n= (n + 1) / 2;
	for (i = 1; i <= n; i++) {
		for (j = 1; j <= 2 * (n - i); j++) {
			printf(" ");
		}
		for (j = 1; j <= 2 * i - 1; j++) {
			printf("* ");
		}
		printf("\n");
	}
	for (i = n - 1; i >= 1; i--) {
		for (j = 1; j <=2*(n-i); j++) {
			printf(" ");
		}
		for (j=1; j<=2*i-1; j++) {
			printf("* ");
		}

		printf("\n");
	}
	return 0;
}